function getCliArgs() {
  const args = process.argv.slice(2);
  const result = {};
  for (let i = 0; i < args.length; i += 2) {
    const key = args[i];
    if (key && key.startsWith("--")) {
      result[key.replace("--", "")] = args[i + 1] ?? true;
    }
  }
  return result;
}

function start() {
  console.log("start");
  const args = getCliArgs();
  console.log("args", args);
}
start();
